project := FileHttpServer
sources := main.c mstring.c mime.c
headers := mime.h mstring.h
cc := gcc

run: $(project)
	@./$(project)

debug: $(project)
	@gdb $(project)

$(project): $(sources) $(headers)
	@$(cc) $(sources) -I ./ -o $(project)

makemime: makemime.c mime.txt mstring.c mstring.h
	@$(cc) makemime.c mstring.c -o makemime -I ./ -g
	@./makemime